#include "ibmsgv_api.h"

#include "COM_ibp_test.dsc.h"

funcIbmsgvTransmain transmain ;

funcIbasSomain somain ;
int somain( struct HttpBuffer *req_body , struct HttpBuffer *rsp_body , struct IbasAddonFiles *addon_files )
{
	COM_ibp_test	req_st ;
	COM_ibp_test	rsp_st ;
	
	int			nret = 0 ;
	
	INFOLOGG( "ENTER ibp_test_db" );
	
	memset( & req_st , 0x00 , sizeof(COM_ibp_test) );
	memset( & rsp_st , 0x00 , sizeof(COM_ibp_test) );
	nret = IBMSGVReceiver_JSON( req_body , & DSCDESERIALIZE_JSON_COM_ibp_test_V , & req_st
				, rsp_body , & DSCSERIALIZE_JSON_DUP_COM_ibp_test_V , & rsp_st
				, & transmain , addon_files ) ;
	if( nret )
	{
		ERRORLOGG( "IBMSGVReceiver_JSON failed[%d]" , nret );
	}
	else
	{
		INFOLOGG( "IBMSGVReceiver_JSON ok" );
	}
	
	INFOLOGG( "LEAVE ibp_test_db" );
	
	return nret;
}

